package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.List;

public class ListMapper implements RowMapper<List> {

	@Override
	public List mapRow(ResultSet rs, int arg1) throws SQLException {
		List list = new List();
		list.setListID(rs.getInt("listID"));
		list.setAgentID(rs.getInt("agentID"));
		list.setProductID(rs.getInt("productID"));
		return list;
	}

}
